@(form: play.data.Form[TimeZoneData], renderedTime: String, timeZones: List[String])

@main("Welcome to Play!") {

    <h1>@renderedTime</h1>

    @flash().getOrDefault("success", "")

    @helper.form(action = routes.TimeController.indexPost()) {

        @helper.select(field = form("timeZone"), options = helper.options(timeZones))
        <input type="submit" value="submit"/>
    }

    <a href="@routes.TimeController.ws()">See time rendered from a remote REST API</a>
}
